# Bazel (http://bazel.io/) workspace file for the entropic measures.

workspace(name = "com_google_entropic")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# -------------------------------------------------------------------------
# Six is a Python 2 and 3 compatibility library:
# -------------------------------------------------------------------------

http_archive(
    name = "six_archive",
    build_file = "@//bazel:six.BUILD.bazel",
    sha256 = "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
    strip_prefix = "six-1.11.0",
    urls = ["https://pypi.python.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz#md5=d12789f9baf7e9fb#524c0c64f1773f8"],
)

# -------------------------------------------------------------------------
# Google Abseil - C++ and Python Common Libraries:
# -------------------------------------------------------------------------

http_archive(
    name = "com_google_absl",
    strip_prefix = "abseil-cpp-master",
    urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
)

http_archive(
    name = "io_abseil_py",
    strip_prefix = "abseil-py-main",
    urls = ["https://github.com/abseil/abseil-py/archive/main.zip"],
)

# -------------------------------------------------------------------------
# OpenFst: See
#   http://www.openfst.org/twiki/bin/view/FST/WebHome
# -------------------------------------------------------------------------
openfst_version = "1.8.1"

http_archive(
    name = "org_openfst",
    urls = ["http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-%s.tar.gz" % openfst_version],
    sha256 = "24fb53b72bb687e3fa8ee96c72a31ff2920d99b980a0a8f61dda426fca6713f0",
    strip_prefix = "openfst-%s" % openfst_version,
)

# -------------------------------------------------------------------------
# OpenGrm N-Gram: See
#   http://www.opengrm.org/twiki/bin/view/GRM/NGramLibrary
# -------------------------------------------------------------------------
opengrm_ngram_version = "1.3.13"

http_archive(
    name = "org_opengrm_ngram",
    urls = ["http://www.openfst.org/twiki/pub/GRM/NGramDownload/ngram-%s.tar.gz" % opengrm_ngram_version],
    sha256 = "e425dfe8e5ecee8c27cb7c9942b59803aca123237476003607c4d20c45131754",
    strip_prefix = "ngram-%s" % opengrm_ngram_version,
)
